FROM alpine

ARG VERSION=v4.23.1
ARG OS=linux
ARG ARCH=64
ARG FILE=v2ray-${OS}-${ARCH}.zip
ARG URL=https://github.com/v2ray/v2ray-core/releases/download/${VERSION}/${FILE}

WORKDIR /v2ray
RUN wget ${URL}
RUN unzip ${FILE}
RUN rm ${FILE}

ENTRYPOINT [ "./v2ray" ]